package com.netrust.quarz.task.module;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.netrust.quarz.utils.DateUtils;

@Entity
@Table(name = "t_virtual_avg")
public class VirtualAvg extends Virtual{
	@Column(name = "avg")
	private double avg;
	@Column(name = "day")
	private Date day;
	@Column(name = "type")
	private String type;
	
	public VirtualAvg() {
		super();
	}
	
	public VirtualAvg(String name, String ip, String depart, String operator,  String iday,String type,double avg) {
		super(name, ip, depart, operator);
		this.avg = avg;
		this.day = DateUtils.parseDate(iday, DateUtils.FORMAT_DEFAULT_1);
		this.type = type;
	}
	
	public double getAvg() {
		return avg;
	}
	public void setAvg(double avg) {
		this.avg = avg;
	}
	public Date getDay() {
		return day;
	}
	public void setDay(Date day) {
		this.day = day;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	
}	
